//
//  OJType.h
//  openJira
//
//  Created by Vincent Demay on 30/04/10.
//  Copyright 2010 Goojet. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "OJConnector.h"
#import "OJXMLRPCModel.h"

@class OJXMLRPCModel;

@interface OJType : NSObject {
	NSString* name;
	NSString* description;
	NSString* icon;
	int lid;
	//TODO : Bitmap
}
@property (nonatomic, retain) NSString* name;
@property (nonatomic, retain) NSString* description;
@property (nonatomic, retain) NSString* icon;
@property (nonatomic) int lid;

@end


/////////////////////// OJPRIORITIESFILTER ////////////////////////
@protocol OJTypeListDelegate;

@interface OJTypeList : OJXMLRPCModel {
	NSMutableDictionary *types;
	id<OJTypeListDelegate> delegate;
}
@property (nonatomic, retain) NSMutableDictionary *types;
@property (nonatomic, assign) id<OJTypeListDelegate> delegate;
- (void) getPriorities;
@end


@protocol OJTypeListDelegate
- (void) object:(OJTypeList*) filter isReady:(BOOL) onError;

@end
